﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.MexicoSailunMES.SpiService;

internal class XLogHelper
{
    public static void WriteLog(string message, bool flag = false)
    {
        try
        {
            // 服务界面显示
            K8.CBB.XContext.Current.Msg = message;
            if (flag)
            {
                // 存储文件
                K8.LSF.Client.Log(new K8.LSF.Log { Data = message });
            }
        }
        catch
        {

        }
    }
}